package com.andy.feign;

import com.andy.customerService.entity.ProcessLeader;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Andy
 * @date 2022/2/10 9:33
 */
@FeignClient(name = "admin")
public interface AssigneeFeign {
    /**
     * 查询管理者列表
     *
     * @return
     */
    @GetMapping("/process-leader/list")
    List<ProcessLeader> findProcessLeaderList();

    /**
     * 获取用户角色
     * @param userId
     */
    @GetMapping("/process-leader/getRole")
    ProcessLeader getRoleByUserId(@RequestParam("userId") String userId);
}
